﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace BCEntity.TMS.OrderFreightRecord
{
    /// <summary>
    /// 订单运费
    /// </summary>
    [Table("orderfreightrecord")]
    public class OrderFreightRecordEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        /// <summary>
        /// 订单运费记录
        /// </summary>
        public long OrderFreightRecordId { get; set; }
        /// <summary>
        /// 费用码
        /// </summary>		
        public string CostCode { get; set; }
        /// <summary>
        /// 费用标题
        /// </summary>		
        public string CostTitle { get; set; }
        /// <summary>
        /// 费用值
        /// </summary>		
        public decimal CostValue { get; set; }
        /// <summary>
        /// 父级费用码
        /// </summary>
        public string ParentCostCode { get; set; }
        /// <summary>
        /// 订单Id
        /// </summary>		
        public long OrderId { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>		
        public string OrderNo { get; set; }
        /// <summary>
        /// 是否为订单最新运费记录
        /// </summary>		
        public bool IsOrderNewFreight { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>		
        public DateTime CreateTime { get; set; }

    }
}

